import { createRouter, createWebHistory } from 'vue-router';
import login_page from '../pages/login_page/login_page.vue'
import main_page from '../pages/main_page/main_page.vue'
import task_page from '../pages/task_page/task_page.vue'
import acc_info_page from '../pages/acc_info_page/acc_info_page.vue'
import manage_page from '../pages/manage_page/manage_page.vue'
import all_order from '../pages/manage_page/all_order/all_order.vue'
import audit from '../pages/manage_page/audit/audit.vue'
import finished from '../pages/manage_page/finished/finished.vue'
 
const routes = [
  {
    path: '/',
    name: 'login',
    component: login_page
  },
  {
    path: '/main',
    name: 'main',
    component: main_page
  },
  {
    path: '/task',
    name: 'task',
    component: task_page
  },
  {
    path: '/accInfo',
    name: 'accInfo',
    component: acc_info_page
  },
  {
    path: '/manage',
    name: 'manage',
    component: manage_page
  },
  {
    path: '/all_order',
    name: 'all_order',
    component: all_order
  },
  {
    path: '/audit',
    name: 'audit',
    component: audit
  },
  {
    path: '/finished',
    name: 'finished',
    component: finished
  }
];
 
const router = createRouter({
  history: createWebHistory(),
  routes,
});
 
export default router;